package Homework4;

import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.testng.annotations.AfterClass;
import org.testng.annotations.BeforeClass;

import java.util.concurrent.TimeUnit;

/**
 * Created by Виталий on 24.03.14.
 */
public class BaseClass {
        protected WebDriver driver;
        protected static String baseUrl = "http://rozetka.com.ua/";

        @BeforeClass
        public void setUp() throws Exception {
            driver = new FirefoxDriver();
            driver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);
        }

        @AfterClass
        public void tearDown() throws Exception {
            driver.quit();
            System.out.println("Log out");
        }

}
